[PATCH] Catch and print if directory= doesn't exist