Fix for ShellCommandFailed with optimize_autoload

Bug was caused by operator precedence issue in project.rb