Move import file lock out of .php up into .sh