Solved unix problem on setting working directory