Fix `write` option
Refactor .delete() relation to CWD

Instead of checking for file in/out of CWD, we checked them related to
the instance base path.