Fix NPE when bin directory does not exist