replacing usage of os.PathSeparator whith path.Join