Fixed bug in instantiating from outside bin dir