(bug 26909) Add dir parameter for prop= API modules. Modified patch by Umherirrender