Remove legacy POSIX dependency
Only require File::chdir when 'dir' attribute is used
Cleanup & optimize _fork & _spawn methods