Normalising the open function and adding /usr/local/bin to standard path