Add splitPath method to the Command class to split a path (useful for CD and CP command)