add 'fromPath' function in h5_ndarray/factories.py

minor bug fix