Fix alias pattern to match alias expansions that contain quotes