Fixed bug where LD_LIBRARY_PATH (and others) could start with empty element