Move aliases after environment variable setup

Fix issues MacPorts "ag" not being found when checking if ag is present