Do not pre-compile a project if an alias was found

Closes #2689