Fixed bug with dependencies when running from jar