Make the build work proper with custom location values