Change hard-coded '/public/' path in loadPem() to 'public_path()' function

Allow users to use different directory than 'public' as 'public' directory (i.e. 'public_html' )