fix bug checking if in debug mode
embed hash into script name
clean up more files