Use File::Spec
Add test for plugins and read-only directories