detecting bin or script dir for finding the delayed_job script