add tmp directory and remove . from PATH