Be more careful and informative with system() calls
Added simplistic/stupid build directory locking