execute only if a file exists

Hi Burak, here a small extension, 
Maybe you want to take it over.