Cleaning up bash syntax