fixed bug with temp files (were not placed at ./tmp and skipped_ files were not handled)