small change to work for normal executable or bash script