fix potential bug by using / anywhere as path sep