improved setting working folder and macros path