Ok, I manage to figure the problem out. The
sass requires a home directory to operate correctly. If you are executing PHP as a system user, which in my case it was, it does not have a home directory, that is why it failed.
On Linux, you can use
mkhomedir_helper [user] to create a home directory. Once you have created a home directory,
sass will start to work.