fixed problem with running from PATH