improving setting working folder across different OSes