Exclude files from build if excluded from git