remove intermediate file - TODO: make them pull out of the build dir