Fixed a little problem that only threw an error when building in a subdirectory