Fix issue where compile fails when no bin directory is found