Check args in build phases as well
Make sure TMP_DIR is defined