Path to working directory made valid in different platforms