avoiding NPE when startupDir is not set
fixed problem when "run" depends on the platform libs