# along with Cycript. If not, see <http://www.gnu.org/licenses/>.
# }}}
-dir=${0%/*}
-DYLD_LIBRARY_PATH=Cycript.lib exec Cycript.lib/cycript "$@"
+dir=$(dirname "${BASH_SOURCE[0]}")
+DYLD_LIBRARY_PATH="${dir}"/Cycript.lib exec "${dir}"/Cycript.lib/cycript "$@"