Fixes when BINARY_DIR is shorter than SOURCE_DIR