Fix smart-alias to handle aliases with spaces.