resolve webAbsPath if relative path provided
slight refactoring and rewording