use script directory instead of bin