check in the correct working dir before starting