Fixes about require paths

This organize the require paths and avoid the php folder relative paths.