fix #11, handle pathname as package file parameter