PRIPAD-5148 Allow platform-specific redirect
Fix indentation
Return early if no subdir found
Use $path
Merge pull request #4 from mobileiq/feature/redirect_to_platform

PRIPAD-5148 Allow platform-specific redirect