[Fpm] Improve POSIX compatibility