Made specs work and change tmp dir/file resolution to be local to the project