Command substitution doesn't work with alias. Move to functions.