Fix double evaluation of BUILD_LOCATION

This is a completely different approach. Instead of checking for the
current directory to determine if it is the first or second run, just
check whether the SOURCE_LOCATION has been set (which is in the second
run)